﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using pgen;

namespace test
{
    class Program
    {
        static void Main(string[] args)
        {
            var pin = new PinCode(12);
            pin.Seed();
            var nnn = long.Parse(pin.ToLongString());

            pin.Part1 = 0;
            pin.Part2 = 9999;
            pin.Part3 = 0;
            pin.Part4 = 9999;
            pin.PinLength = 16;
            nnn = pin.ToLong();
            var s = pin.ToLongString();
            s = pin.ToString();

            var hx = new PinHistory();
            for (var i = 0; i < 99999; i++)
            {
                pin.Seed();
                hx.AddToHistory(pin);
            }
            
            hx.SaveToFile("history.dat");
            hx.LoadFromFile("history.dat");
        }
    }
}
